package io.renren.modules.noc.service.impl;

import io.renren.modules.noc.dao.NocRegionDao;
import io.renren.modules.noc.entity.NocRegionEntity;
import io.renren.modules.noc.service.NocRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("NocRegionService")
public class NocRegionServiceImpl implements NocRegionService {
    @Autowired
    private NocRegionDao nocRegionDao;
    public List<NocRegionEntity> getProvince(){
        return nocRegionDao.getProvince();
    }

    public List<NocRegionEntity> getCity(Map<String,Object> map){
        return nocRegionDao.getCity(map);
    }

    public Map<String,Object> getProvinceById(Map<String,Object> map){
        return nocRegionDao.getProvinceById(map);
    }
}
